package com.stars.easyms.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * Springboot启动类
 *
 * @author guoguifang
 * @version 1.2.1
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.stars.easyms.demo"}, useDefaultFilters = false,
        includeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = {org.springframework.stereotype.Component.class})})
public class Application {
    private static Logger logger = LoggerFactory.getLogger(Application.class);

    public static void main(String[] args) {
        logger.info("===============Spring Boot start=========================");
        SpringApplication.run(Application.class, args);
        logger.info("===============Spring Boot end=========================");
    }

}
